from django.urls import path
from rest_framework.routers import SimpleRouter

# from user.views import UserName, UserMobile, UserView

from ares.views import  Areasview

router = SimpleRouter()
# 注册资源 /api/user/username/ /api/user/username/[id]/
router.register('areas', Areasview)
# router.register('mobiles', UserMobile)
# # 注册资源 /api/user/auth/  /api/user/auth/[id]/
# router.register('auth', UserView)




urlpatterns=[
    # path('areas/', a),
    # path('areas/', areas),
]

urlpatterns += router.urls